import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { StockCategoryComponent } from './Category/stock-category.component';
import { CollegeComponent } from './college/college.component';
import { StockComponent } from './stock/stock.component';
import { StockSubmitComponent } from './stocksubmit/stock-submit.component';

const routes: Routes = [
  {
    path: '',
    children: [
      { path: 'stockCategory', component: StockCategoryComponent, data: { permission: 'Pages.StockCategory' } },
      { path: 'college', component: CollegeComponent, data: { permission: 'Pages.College' } },
      { path: 'stock', component: StockComponent, data: { permission: 'Pages.Stock' } },
      { path: 'stocksubmit', component: StockSubmitComponent, data: { permission: 'Pages.StockSubmit' } }
    ]
  }
];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class ExamRoutingModule { }
